[INFO] cloning repository https://github.com/NareshKose/rust_e_commerce
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NareshKose/rust_e_commerce" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNareshKose%2Frust_e_commerce", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNareshKose%2Frust_e_commerce'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e023efbd5c1d21df806be1d6d3de7ed0715695c8
[INFO] fixing NareshKose/rust_e_commerce against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNareshKose%2Frust_e_commerce" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/NareshKose/rust_e_commerce
[INFO] finished tweaking git repo https://github.com/NareshKose/rust_e_commerce
[INFO] tweaked toml for git repo https://github.com/NareshKose/rust_e_commerce written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/NareshKose/rust_e_commerce on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/NareshKose/rust_e_commerce already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded if_chain v1.0.2
[INFO] [stderr]   Downloaded lettre v0.11.17
[INFO] [stderr]   Downloaded clickhouse-derive v0.2.0
[INFO] [stderr]   Downloaded replace_with v0.1.8
[INFO] [stderr]   Downloaded sealed v0.6.0
[INFO] [stderr]   Downloaded lz4_flex v0.11.3
[INFO] [stderr]   Downloaded clickhouse v0.13.3
[INFO] [stderr]   Downloaded rdkafka v0.37.0
[INFO] [stderr]   Downloaded cityhash-rs v1.0.1
[INFO] [stderr]   Downloaded actix-http v3.11.0
[INFO] [stderr]   Downloaded actix-web v4.11.0
[INFO] [stderr]   Downloaded rdkafka-sys v4.8.0+2.3.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 490892bf888f8f63c9652c67937b417dfc442c9b90a75c3c6d2dd022a28270a9
[INFO] running `Command { std: "docker" "start" "490892bf888f8f63c9652c67937b417dfc442c9b90a75c3c6d2dd022a28270a9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "490892bf888f8f63c9652c67937b417dfc442c9b90a75c3c6d2dd022a28270a9" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "490892bf888f8f63c9652c67937b417dfc442c9b90a75c3c6d2dd022a28270a9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "490892bf888f8f63c9652c67937b417dfc442c9b90a75c3c6d2dd022a28270a9" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling lock_api v0.4.13
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking bytes v1.10.1
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]     Checking parking_lot_core v0.9.11
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking mio v1.0.4
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]     Checking getrandom v0.3.3
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling libm v0.2.15
[INFO] [stderr]    Compiling zerocopy v0.8.25
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]     Checking tracing-core v0.1.34
[INFO] [stderr]    Compiling writeable v0.6.1
[INFO] [stderr]    Compiling litemap v0.8.0
[INFO] [stderr]    Compiling indexmap v2.9.0
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]    Compiling rust_decimal v1.37.1
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling base64ct v1.8.0
[INFO] [stderr]     Checking parking_lot v0.12.4
[INFO] [stderr]    Compiling icu_properties_data v2.0.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling pem-rfc7468 v0.7.0
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]    Compiling der v0.7.10
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling tinyvec v1.9.0
[INFO] [stderr]    Compiling cc v1.2.26
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]    Compiling time-macros v0.2.22
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling tokio v1.45.1
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling winnow v0.7.10
[INFO] [stderr]    Compiling arrayvec v0.7.6
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling unicode-normalization v0.1.24
[INFO] [stderr]    Compiling num-iter v0.1.45
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]     Checking spki v0.7.3
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling rustix v1.0.7
[INFO] [stderr]    Compiling pkcs8 v0.10.2
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling signature v2.2.0
[INFO] [stderr]    Compiling pkcs1 v0.7.5
[INFO] [stderr]     Checking time v0.3.41
[INFO] [stderr]    Compiling num-bigint-dig v0.8.4
[INFO] [stderr]     Checking http v1.3.1
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling hashlink v0.8.4
[INFO] [stderr]    Compiling webpki-roots v0.25.4
[INFO] [stderr]    Compiling unicode-bidi v0.3.18
[INFO] [stderr]     Checking local-waker v0.1.4
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling unicode-properties v0.1.3
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]    Compiling psm v0.1.26
[INFO] [stderr]    Compiling libz-sys v1.1.22
[INFO] [stderr]    Compiling toml_edit v0.22.27
[INFO] [stderr]    Compiling sqlformat v0.2.6
[INFO] [stderr]    Compiling openssl v0.10.73
[INFO] [stderr]    Compiling uuid v1.17.0
[INFO] [stderr]    Compiling linux-raw-sys v0.9.4
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling rsa v0.9.8
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling stacker v0.1.21
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]    Compiling fastrand v2.3.0
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]     Checking crc-catalog v2.4.0
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling whoami v1.6.0
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking miniz_oxide v0.8.8
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]     Checking brotli-decompressor v5.0.0
[INFO] [stderr]     Checking actix-utils v3.0.1
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]    Compiling bytestring v1.4.0
[INFO] [stderr]    Compiling proc-macro-crate v3.3.0
[INFO] [stderr]     Checking inout v0.1.4
[INFO] [stderr]     Checking actix-service v2.0.3
[INFO] [stderr]    Compiling rdkafka-sys v4.8.0+2.3.0
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]     Checking crc32fast v1.4.2
[INFO] [stderr]    Compiling regex-lite v0.1.6
[INFO] [stderr]     Checking flate2 v1.1.2
[INFO] [stderr]     Checking cipher v0.4.4
[INFO] [stderr]     Checking brotli v8.0.1
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking rand v0.9.1
[INFO] [stderr]    Compiling serde_derive_internals v0.29.1
[INFO] [stderr]     Checking local-channel v0.1.5
[INFO] [stderr]    Compiling validator_types v0.16.0
[INFO] [stderr]    Compiling bigdecimal v0.4.8
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]     Checking language-tags v0.3.2
[INFO] [stderr]    Compiling if_chain v1.0.2
[INFO] [stderr]     Checking foldhash v0.1.5
[INFO] [stderr]    Compiling validator_derive v0.16.0
[INFO] [stderr]     Checking chumsky v0.9.3
[INFO] [stderr]     Checking blowfish v0.9.1
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.29
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling num_enum_derive v0.7.3
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]    Compiling sct v0.7.1
[INFO] [stderr]    Compiling rustls-webpki v0.101.7
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking num_enum v0.7.3
[INFO] [stderr]     Checking simple_asn1 v0.6.3
[INFO] [stderr]    Compiling clickhouse-derive v0.2.0
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling sealed v0.6.0
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]     Checking idna v0.4.0
[INFO] [stderr]     Checking email-encoding v0.4.1
[INFO] [stderr]     Checking pem v3.0.5
[INFO] [stderr]     Checking nom v8.0.0
[INFO] [stderr]     Checking bstr v1.12.0
[INFO] [stderr]     Checking replace_with v0.1.8
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking quoted_printable v0.5.1
[INFO] [stderr]     Checking lz4_flex v0.11.3
[INFO] [stderr]     Checking email_address v0.2.9
[INFO] [stderr]     Checking icu_properties v2.0.1
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking cityhash-rs v1.0.1
[INFO] [stderr]     Checking impl-more v0.1.9
[INFO] [stderr]     Checking bcrypt v0.15.1
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking derive_more v2.0.1
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking actix-rt v2.10.0
[INFO] [stderr]     Checking hyper v1.6.0
[INFO] [stderr]     Checking actix-server v2.6.0
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking hyper-util v0.1.14
[INFO] [stderr]     Checking bitflags v2.9.1
[INFO] [stderr]     Checking either v1.15.0
[INFO] [stderr]     Checking actix-codec v0.5.2
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking actix-router v0.5.3
[INFO] [stderr]     Checking clickhouse v0.13.3
[INFO] [stderr]     Checking jsonwebtoken v9.3.1
[INFO] [stderr]     Checking validator v0.16.1
[INFO] [stderr]     Checking sqlx-core v0.7.4
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]    Compiling tempfile v3.20.0
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking zstd v0.13.3
[INFO] [stderr]     Checking lettre v0.11.17
[INFO] [stderr]     Checking actix-http v3.11.0
[INFO] [stderr]     Checking sqlx-mysql v0.7.4
[INFO] [stderr]     Checking actix-web v4.11.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.7.4
[INFO] [stderr]    Compiling sqlx-macros v0.7.4
[INFO] [stderr]     Checking sqlx v0.7.4
[INFO] [stderr]     Checking rdkafka v0.37.0
[INFO] [stderr]     Checking e_commerce v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/product_handler.rs:184:20
[INFO] [stdout]     |
[INFO] [stdout] 184 |       let existing = sqlx::query!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 185 | |         "SELECT * FROM products WHERE id = ?",
[INFO] [stdout] 186 | |         id.to_string()
[INFO] [stdout] 187 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/product_handler.rs:200:22
[INFO] [stdout]     |
[INFO] [stdout] 200 |           let result = sqlx::query!(
[INFO] [stdout]     |  ______________________^
[INFO] [stdout] 201 | |             "UPDATE products SET name = ?, description = ?, price = ?, category = ?, status = ? WHERE id = ?",
[INFO] [stdout] 202 | |             new_name,
[INFO] [stdout] 203 | |             new_desc,
[INFO] [stdout] ...   |
[INFO] [stdout] 207 | |             id.to_string()
[INFO] [stdout] 208 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/handlers/order_handler.rs:49:22
[INFO] [stdout]    |
[INFO] [stdout] 49 |           let result = sqlx::query!(
[INFO] [stdout]    |  ______________________^
[INFO] [stdout] 50 | |             "SELECT name, price, stock, status FROM products WHERE id = ?",
[INFO] [stdout] 51 | |             item.product_id
[INFO] [stdout] 52 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:101:25
[INFO] [stdout]     |
[INFO] [stdout] 101 |       let insert_result = sqlx::query!(
[INFO] [stdout]     |  _________________________^
[INFO] [stdout] 102 | |         "INSERT INTO orders (id, user_id, total_amount, status, shipping_address)
[INFO] [stdout] 103 | |          VALUES (?, ?, ?, ?, ?)",
[INFO] [stdout] 104 | |         order_id.to_string(),
[INFO] [stdout] ...   |
[INFO] [stdout] 108 | |         order.shipping_address
[INFO] [stdout] 109 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:122:34
[INFO] [stdout]     |
[INFO] [stdout] 122 |           let insert_item_result = sqlx::query!(
[INFO] [stdout]     |  __________________________________^
[INFO] [stdout] 123 | |             "INSERT INTO order_items (id, order_id, product_id, product_name, quantity, created_at)
[INFO] [stdout] 124 | |              VALUES (?, ?, ?, ?, ?, NOW())",
[INFO] [stdout] 125 | |             item_id.to_string(),
[INFO] [stdout] ...   |
[INFO] [stdout] 129 | |             item.quantity
[INFO] [stdout] 130 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:142:35
[INFO] [stdout]     |
[INFO] [stdout] 142 |           let stock_update_result = sqlx::query!(
[INFO] [stdout]     |  ___________________________________^
[INFO] [stdout] 143 | |             "UPDATE products SET stock = stock - ? WHERE id = ?",
[INFO] [stdout] 144 | |             item.quantity,
[INFO] [stdout] 145 | |             item.product_id
[INFO] [stdout] 146 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:160:19
[INFO] [stdout]     |
[INFO] [stdout] 160 |   let stock_check = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 161 | |     "SELECT stock FROM products WHERE id = ?",
[INFO] [stdout] 162 | |     item.product_id
[INFO] [stdout] 163 | | )
[INFO] [stdout]     | |_^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:250:32
[INFO] [stdout]     |
[INFO] [stdout] 250 |       let current_status = match sqlx::query!(
[INFO] [stdout]     |  ________________________________^
[INFO] [stdout] 251 | |         "SELECT status FROM orders WHERE id = ?",
[INFO] [stdout] 252 | |         order_id
[INFO] [stdout] 253 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:282:21
[INFO] [stdout]     |
[INFO] [stdout] 282 |       if let Err(_) = sqlx::query!(
[INFO] [stdout]     |  _____________________^
[INFO] [stdout] 283 | |         "UPDATE orders SET status = ? WHERE id = ?",
[INFO] [stdout] 284 | |         new_status,
[INFO] [stdout] 285 | |         order_id
[INFO] [stdout] 286 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:337:23
[INFO] [stdout]     |
[INFO] [stdout] 337 |       let order = match sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 338 | |         "SELECT status, user_id FROM orders WHERE id = ?",
[INFO] [stdout] 339 | |         order_id
[INFO] [stdout] 340 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:376:29
[INFO] [stdout]     |
[INFO] [stdout] 376 |       let order_items = match sqlx::query!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 377 | |         "SELECT product_id, quantity FROM order_items WHERE order_id = ?",
[INFO] [stdout] 378 | |         order_id
[INFO] [stdout] 379 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:391:29
[INFO] [stdout]     |
[INFO] [stdout] 391 |               if let Err(_) = sqlx::query!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 392 | |                 "UPDATE products SET stock = stock + ? WHERE id = ?",
[INFO] [stdout] 393 | |                 quantity,
[INFO] [stdout] 394 | |                 product_id
[INFO] [stdout] 395 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:406:21
[INFO] [stdout]     |
[INFO] [stdout] 406 |       if let Err(_) = sqlx::query!(
[INFO] [stdout]     |  _____________________^
[INFO] [stdout] 407 | |         "UPDATE orders SET status = 'cancelled' WHERE id = ?",
[INFO] [stdout] 408 | |         order_id
[INFO] [stdout] 409 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:439:23
[INFO] [stdout]     |
[INFO] [stdout] 439 |       let order = match sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 440 | |         "SELECT id, user_id, total_amount, status, created_at, shipping_address FROM orders WHERE id = ?",
[INFO] [stdout] 441 | |         order_id
[INFO] [stdout] 442 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:452:29
[INFO] [stdout]     |
[INFO] [stdout] 452 |       let order_items = match sqlx::query!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 453 | |         "SELECT id, product_id, product_name, quantity, created_at FROM order_items WHERE order_id = ?",
[INFO] [stdout] 454 | |         order_id
[INFO] [stdout] 455 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/handlers/auth_handler.rs:41:18
[INFO] [stdout]    |
[INFO] [stdout] 41 |       let result = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 42 | |         "INSERT INTO users (id, username, email, password) VALUES (?, ?, ?, ?)",
[INFO] [stdout] 43 | |        user_id,
[INFO] [stdout] 44 | |         username,
[INFO] [stdout] 45 | |         email,
[INFO] [stdout] 46 | |         hashed_pwd,
[INFO] [stdout] 47 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/handlers/auth_handler.rs:66:15
[INFO] [stdout]    |
[INFO] [stdout] 66 |       let row = sqlx::query!(
[INFO] [stdout]    |  _______________^
[INFO] [stdout] 67 | |         "SELECT id, email, password, role FROM users WHERE email = ?",
[INFO] [stdout] 68 | |         login.email.trim(),
[INFO] [stdout] 69 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/product_handler.rs:184:20
[INFO] [stdout]     |
[INFO] [stdout] 184 |       let existing = sqlx::query!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 185 | |         "SELECT * FROM products WHERE id = ?",
[INFO] [stdout] 186 | |         id.to_string()
[INFO] [stdout] 187 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/product_handler.rs:200:22
[INFO] [stdout]     |
[INFO] [stdout] 200 |           let result = sqlx::query!(
[INFO] [stdout]     |  ______________________^
[INFO] [stdout] 201 | |             "UPDATE products SET name = ?, description = ?, price = ?, category = ?, status = ? WHERE id = ?",
[INFO] [stdout] 202 | |             new_name,
[INFO] [stdout] 203 | |             new_desc,
[INFO] [stdout] ...   |
[INFO] [stdout] 207 | |             id.to_string()
[INFO] [stdout] 208 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/handlers/order_handler.rs:49:22
[INFO] [stdout]    |
[INFO] [stdout] 49 |           let result = sqlx::query!(
[INFO] [stdout]    |  ______________________^
[INFO] [stdout] 50 | |             "SELECT name, price, stock, status FROM products WHERE id = ?",
[INFO] [stdout] 51 | |             item.product_id
[INFO] [stdout] 52 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:101:25
[INFO] [stdout]     |
[INFO] [stdout] 101 |       let insert_result = sqlx::query!(
[INFO] [stdout]     |  _________________________^
[INFO] [stdout] 102 | |         "INSERT INTO orders (id, user_id, total_amount, status, shipping_address)
[INFO] [stdout] 103 | |          VALUES (?, ?, ?, ?, ?)",
[INFO] [stdout] 104 | |         order_id.to_string(),
[INFO] [stdout] ...   |
[INFO] [stdout] 108 | |         order.shipping_address
[INFO] [stdout] 109 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:122:34
[INFO] [stdout]     |
[INFO] [stdout] 122 |           let insert_item_result = sqlx::query!(
[INFO] [stdout]     |  __________________________________^
[INFO] [stdout] 123 | |             "INSERT INTO order_items (id, order_id, product_id, product_name, quantity, created_at)
[INFO] [stdout] 124 | |              VALUES (?, ?, ?, ?, ?, NOW())",
[INFO] [stdout] 125 | |             item_id.to_string(),
[INFO] [stdout] ...   |
[INFO] [stdout] 129 | |             item.quantity
[INFO] [stdout] 130 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:142:35
[INFO] [stdout]     |
[INFO] [stdout] 142 |           let stock_update_result = sqlx::query!(
[INFO] [stdout]     |  ___________________________________^
[INFO] [stdout] 143 | |             "UPDATE products SET stock = stock - ? WHERE id = ?",
[INFO] [stdout] 144 | |             item.quantity,
[INFO] [stdout] 145 | |             item.product_id
[INFO] [stdout] 146 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:160:19
[INFO] [stdout]     |
[INFO] [stdout] 160 |   let stock_check = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 161 | |     "SELECT stock FROM products WHERE id = ?",
[INFO] [stdout] 162 | |     item.product_id
[INFO] [stdout] 163 | | )
[INFO] [stdout]     | |_^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:250:32
[INFO] [stdout]     |
[INFO] [stdout] 250 |       let current_status = match sqlx::query!(
[INFO] [stdout]     |  ________________________________^
[INFO] [stdout] 251 | |         "SELECT status FROM orders WHERE id = ?",
[INFO] [stdout] 252 | |         order_id
[INFO] [stdout] 253 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:282:21
[INFO] [stdout]     |
[INFO] [stdout] 282 |       if let Err(_) = sqlx::query!(
[INFO] [stdout]     |  _____________________^
[INFO] [stdout] 283 | |         "UPDATE orders SET status = ? WHERE id = ?",
[INFO] [stdout] 284 | |         new_status,
[INFO] [stdout] 285 | |         order_id
[INFO] [stdout] 286 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:337:23
[INFO] [stdout]     |
[INFO] [stdout] 337 |       let order = match sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 338 | |         "SELECT status, user_id FROM orders WHERE id = ?",
[INFO] [stdout] 339 | |         order_id
[INFO] [stdout] 340 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:376:29
[INFO] [stdout]     |
[INFO] [stdout] 376 |       let order_items = match sqlx::query!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 377 | |         "SELECT product_id, quantity FROM order_items WHERE order_id = ?",
[INFO] [stdout] 378 | |         order_id
[INFO] [stdout] 379 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:391:29
[INFO] [stdout]     |
[INFO] [stdout] 391 |               if let Err(_) = sqlx::query!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 392 | |                 "UPDATE products SET stock = stock + ? WHERE id = ?",
[INFO] [stdout] 393 | |                 quantity,
[INFO] [stdout] 394 | |                 product_id
[INFO] [stdout] 395 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:406:21
[INFO] [stdout]     |
[INFO] [stdout] 406 |       if let Err(_) = sqlx::query!(
[INFO] [stdout]     |  _____________________^
[INFO] [stdout] 407 | |         "UPDATE orders SET status = 'cancelled' WHERE id = ?",
[INFO] [stdout] 408 | |         order_id
[INFO] [stdout] 409 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:439:23
[INFO] [stdout]     |
[INFO] [stdout] 439 |       let order = match sqlx::query!(
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 440 | |         "SELECT id, user_id, total_amount, status, created_at, shipping_address FROM orders WHERE id = ?",
[INFO] [stdout] 441 | |         order_id
[INFO] [stdout] 442 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/handlers/order_handler.rs:452:29
[INFO] [stdout]     |
[INFO] [stdout] 452 |       let order_items = match sqlx::query!(
[INFO] [stdout]     |  _____________________________^
[INFO] [stdout] 453 | |         "SELECT id, product_id, product_name, quantity, created_at FROM order_items WHERE order_id = ?",
[INFO] [stdout] 454 | |         order_id
[INFO] [stdout] 455 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/handlers/auth_handler.rs:41:18
[INFO] [stdout]    |
[INFO] [stdout] 41 |       let result = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 42 | |         "INSERT INTO users (id, username, email, password) VALUES (?, ?, ?, ?)",
[INFO] [stdout] 43 | |        user_id,
[INFO] [stdout] 44 | |         username,
[INFO] [stdout] 45 | |         email,
[INFO] [stdout] 46 | |         hashed_pwd,
[INFO] [stdout] 47 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/handlers/auth_handler.rs:66:15
[INFO] [stdout]    |
[INFO] [stdout] 66 |       let row = sqlx::query!(
[INFO] [stdout]    |  _______________^
[INFO] [stdout] 67 | |         "SELECT id, email, password, role FROM users WHERE email = ?",
[INFO] [stdout] 68 | |         login.email.trim(),
[INFO] [stdout] 69 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `time::Duration`
[INFO] [stdout]  --> src/handlers/auth_handler.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | use cookie::{time::Duration};
[INFO] [stdout]   |              ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]  --> src/models/product.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BoxBody`
[INFO] [stdout]  --> src/middleware/auth.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 |     body::{BoxBody, EitherBody},
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::cookie::Cookie`
[INFO] [stdout]  --> src/middleware/auth.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use actix_web::cookie::Cookie; // Import Cookie
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::auth::Claims`
[INFO] [stdout]   --> src/middleware/auth.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::models::auth::Claims;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `time::Duration`
[INFO] [stdout]  --> src/handlers/auth_handler.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | use cookie::{time::Duration};
[INFO] [stdout]   |              ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]  --> src/models/product.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BoxBody`
[INFO] [stdout]  --> src/middleware/auth.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 |     body::{BoxBody, EitherBody},
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::cookie::Cookie`
[INFO] [stdout]  --> src/middleware/auth.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use actix_web::cookie::Cookie; // Import Cookie
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::auth::Claims`
[INFO] [stdout]   --> src/middleware/auth.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::models::auth::Claims;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `expired_cookie`
[INFO] [stdout]    --> src/handlers/auth_handler.rs:103:10
[INFO] [stdout]     |
[INFO] [stdout] 103 |      let expired_cookie = Cookie::build("auth_token", "")
[INFO] [stdout]     |          ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expired_cookie`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `expired_cookie`
[INFO] [stdout]    --> src/handlers/auth_handler.rs:103:10
[INFO] [stdout]     |
[INFO] [stdout] 103 |      let expired_cookie = Cookie::build("auth_token", "")
[INFO] [stdout]     |          ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expired_cookie`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/middleware/auth.rs:50:20
[INFO] [stdout]    |
[INFO] [stdout] 50 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stdout]    |                    ----^^^
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/middleware/auth.rs:50:20
[INFO] [stdout]    |
[INFO] [stdout] 50 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stdout]    |                    ----^^^
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `e_commerce` (bin "e_commerce") due to 17 previous errors; 7 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `e_commerce` (bin "e_commerce" test) due to 17 previous errors; 7 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "490892bf888f8f63c9652c67937b417dfc442c9b90a75c3c6d2dd022a28270a9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "490892bf888f8f63c9652c67937b417dfc442c9b90a75c3c6d2dd022a28270a9", kill_on_drop: false }`
[INFO] [stdout] 490892bf888f8f63c9652c67937b417dfc442c9b90a75c3c6d2dd022a28270a9
